Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: How to get XMLHTTP to 'POST' valid SOAP request ?
Feedback Type: Question
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: Always

I have a valid SOAP request, which I have verified by posting it to the same Webservice using the Eclipse SoapUI PlugIn for the Designer Client which successfully completes. My problem arises when I try to use the exact same request in the following code.

Set xmlhttp = CreateObject("Msxml2.XMLHTTP")
Set xmlDoc = CreateObject("Msxml2.DOMdocument")
XMLDoc.async = False
XMLDoc.loadXML(MySoap)
Call xmlhttp.open("POST", serverName, False, username, password)
Call xmlhttp.setRequestHeader("Content-Type", "text/xml")
Call xmlhttp.setRequestHeader("charset", "UTF-8")
Call xmlhttp.setRequestHeader("UserName", userName)
Call xmlhttp.setRequestHeader("Password", passWord)
Call xmlhttp.setRequestHeader("SOAPAction", "CreateRequest")
Call xmlhttp.send(XMLDoc)
strxml = xmlhttp.responseText
msgbox strxml,8,"Debug"

My debug message box gives the following response

"A CXmlApiException was raised in native code:error16:scxmlapi(16) - Invalid or missing file name in XML"

My SOAP request looks like this

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://xxxxxxx.xx.com/xx/x" xmlns:com="http://xxxxxxx.xx.com/xx/x/Common" xmlns:xm="http://www.w3.org/2005/05/xmlmime">
<soapenv:Header/>
<soapenv:Body>
<ns:CreateFPIRequest attachmentInfo="?" attachmentData="?" ignoreEmptyElements="true" updateconstraint="-1">
<ns:model query="?">
<ns:keys query="?" updatecounter="?">
<!--Optional:-->
<ns:incident.id type="String" mandatory="?" readonly="?"></ns:incident.id>
</ns:keys>
<ns:instance query="?" uniquequery="?" recordid="?" updatecounter="?">
<!--Optional:-->
<ns:ServiceRecipient type="String" mandatory="?" readonly="?">xyz.xyz@x.y.com</ns:ServiceRecipient>
<!--Optional:-->
<ns:Urgency type="String" mandatory="?" readonly="?">4</ns:Urgency>
<!--Optional:-->
<ns:AffectedService type="String" mandatory="?" readonly="?">SMTP Mail UK</ns:AffectedService>
<!--Optional:-->
<ns:Category type="String" mandatory="?" readonly="?">incident</ns:Category>
<!--Optional:-->
<ns:Area type="String" mandatory="?" readonly="?">request - other</ns:Area>
<!--Optional:-->
<ns:SubArea type="String" mandatory="?" readonly="?">other</ns:SubArea>
<!--Optional:-->
<ns:PrimaryContact type="String" mandatory="?" readonly="?">xyz.xyz@x.y.com</ns:PrimaryContact>
<!--Optional:-->
<ns:Impact type="String" mandatory="?" readonly="?">4</ns:Impact>
<!--Optional:-->
<ns:Title type="String" mandatory="?" readonly="?">Testing WS Call from SOAP UI</ns:Title>
<!--Optional:-->
<ns:FPDescription type="String" mandatory="?" readonly="?">Testing Post HTTP Agent</ns:FPDescription>
<!--Optional:-->
<ns:attachments>
<!--Zero or more repetitions:-->
<com:attachment xm:contentType="application/?" href="?" contentId="?" action="?" name="?" type="?" len="?" charset="?" upload.by="?" upload.date="?" attachmentType="?">cid:182988145671</com:attachment>
</ns:attachments>
</ns:instance>
<!--Optional:-->
<ns:messages>
<!--Zero or more repetitions:-->
<com:message type="String" mandatory="?" readonly="?" severity="?" module="?"></com:message>
</ns:messages>
</ns:model>
</ns:CreateFPIRequest>
</soapenv:Body>
</soapenv:Envelope>


Please, can anyone help me with the format of my request or code to get this to work ?


Feedback number WEBB9VXRZS created by ~Carol Ektooobu on 04/26/2015

Status: Open
Comments:

How to get XMLHTTP to 'POST' valid ... (~Carol Ektooobu... 26.Apr.15)
. . No Longer looking (~Carol Ektooobu... 12.May.15)
. . Please help still looking for an an... (~Carol Ektooobu... 30.Apr.15)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS